package com.jike.shop.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PaymentNotificationLog {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableLogic(value = "0", delval = "1")
    private Boolean deleted;

    /**
     * 交易号
     */
    private Long paymentOrderNo;

    /**
     * 商户交易号
     */
    private String orderNo;

    /**
     * 通知类型，1-支付成功, 2-支付失败, 3-退款成功, 4-退款失败, 5-取消成功, 6-取消失败
     */
    private Integer type;

    /**
     * 通知次数
     */
    private Integer count;

    /**
     * 最后一次通知时间
     */
    private Long lastTime;
}
